package com.service;

import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.StatisticsDao;
import com.util.MySqlSessionFactory;

public class StatisticsService {
	SqlSession sqlsession=MySqlSessionFactory.getSqlSession();
	StatisticsDao dao=sqlsession.getMapper(StatisticsDao.class);
	public Map<String,Object> querytime(
			@Param(value="date1") String date1,
			@Param(value="date2") String date2
			){
		sqlsession.commit();
		return dao.querytime(date1, date2);}
}
